package cn.tedu.tmall.front.mall.service.impl;

import cn.tedu.tmall.common.pojo.po.GoodsSearchPO;
import cn.tedu.tmall.common.pojo.vo.PageData;
import cn.tedu.tmall.front.mall.dao.search.IGoodsSearchRepository;
import cn.tedu.tmall.front.mall.service.IGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsServiceImpl implements IGoodsService {

    @Autowired
    private IGoodsSearchRepository goodsSearchRepository;

    @Override
    public PageData<GoodsSearchPO> search(String keyword, Integer pageNum, Integer pageSize) {
        return goodsSearchRepository.search(keyword, pageNum, pageSize);
    }

}
